/*
 * JSON001User.java
 *
 * Created on 6 październik 2007, 21:52
 *
 */

package kosciak.blip4j.api.json001;

import kosciak.blip4j.User;

import org.json.JSONObject;
import org.json.JSONException;

/**
 *
 * @author Wojtek 'KosciaK' Pietrzok
 */
class JSON001User extends User{
    
  
    /**
     * Creates a new instance of JSON001User
     */
    private JSON001User(int id, String login){
        super(id, login);
    }

    static User getInstance(JSONObject obj) throws JSONException {
        return new JSON001User(obj.getInt("id"), obj.getString("login"));
    }
}
